#encoding:utf8
from kubernetes import client, config
config.kube_config.load_kube_config(config_file = "/etc/kubernetes/admin.conf")
#获取API的CoreV1Api版本对象
v1 = client.CoreV1Api()

#列出 namespaces
k8s_api_obj  = client.CoreV1Api()
resp = k8s_api_obj.list_namespaced_pod("123", label_selector="app=" + "123")
print(resp)
